﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>A2U（ANSI转UTF8）</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<P>函数原型：<br>Function A2U(sPtr As ZString Ptr, sLen As UInteger = 0) As WString Ptr<br>wchar* A2U(char* sPtr, unsigned int sLen = 0);</P>
<P>VB、VBS、按键精灵声明：<br>Declare Function Lib "xTask.dll" A2U(ByVal sPtr As String, ByVal sLen As Long) As String</P>
<P>参数：<br>sPtr：要转换的字符串指针<br>sLen：字符串长度，传0会自动计算</P>
<P>返回转换后的字符串</P>
<P>说明：<br>除非你明确的知道这个函数对于VB、VBS意味着什么，否则尽量不要使用（VB内部对字符串有专门处理）。</P>
</body>
</html>